//package com.example.elasticsearchdemo.SpringDataElasticsearch.service;
//
//import com.example.elasticsearchdemo.SpringDataElasticsearch.dao.Book1Repository;
//import com.example.elasticsearchdemo.SpringDataElasticsearch.enitiy.Book1;
//import org.springframework.beans.factory.annotation.Autowired;
//import org.springframework.stereotype.Service;
//
//import java.util.List;
//
///**
// * ES-Service层
// */
//
//@Service
//public class Book1Service {
//    @Autowired
//    private Book1Repository book1Repository;
//
//    public List<Book1> searchBooksByTitle(String title) {
//        return book1Repository.findByTitle(title);
//    }
//
//    public void saveBook(Book1 book1) {
//        book1Repository.save(book1);
//    }
//}
